#-*-coding:utf-8-*-
__author__ = 'toriycn'



isRedisCluster = False
RedisServer= '127.0.0.1'
RedisPort = '6379'
RedisSubChannel = 'fm87.7'
RedisPubChannel = 'fm103'

RedisAlertChannel='FM119'

SERVERUSER = "mspsys"
SERVERPASSWD = ""

REDIS_KEY_TEMPLATE = "ServiceData::%s::%s"
REDIS_KEY_TEMPLATE_HIS_DATA = "ServiceHistoryData::%s::%s::%s"

MAX_REAL_DATA_STORE_TIMES = 100


#基础数据的定义，这个字典可以列出所有的主机组。
REDIS_KEY_HOSTGROUP="HostGroup::::"
#基础数据的定义，这个字典可以根据某个主机的IP设置主机的数据。
REDIS_KEY_HOSTINFO = "HOSTINFO::%s::"
REDIS_KEY_SERVICEINFO = "SERVICEINFO::%s::"

REDIS_KEY_SERVICE="SERVICE::::"
REDIS_KEY_TEMPLATEGROUP = "SERVICEHOSTTEMPLATE::::"

UPLOAD_FOLDER = 'app/static/upload'